package com.p04.homework.two;

/**
 * 角色类
 */
public abstract class Role {

    protected  String name;

    protected String gender;

    protected  int age;

    public Role() {
        super();
    }

    public Role(String name) {
        this.name = name;
    }

    public Role(String name, int age) {
        this(name);
        this.age = age;
    }

    public Role(String name, String gender, int age) {
        this(name,age);
        this.gender = gender;
    }
    /**
     * 抽象方法
     */
    public abstract void play();





}
